<template>
  <div>
    <div class="active">
      <!-- <a href="#/login">登录</a>
      <a href="#/list">列表</a>
      <a href="#/word">文章</a>
      <a href="#enroll">注册</a> -->
      <router-link :to="`/login?name=${name}&age=${age}`">登录</router-link>
      <router-link to="/list">列表</router-link>
      <router-link to="/word">文章</router-link>
      <router-link to="/enroll/zzc/25">注册</router-link>
    </div>
    <div class="top">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{
      name:'zzc',
      age:20,
    }
  }
}
</script>

<style scoped>
.active{
    position: fixed;
  left: 0;
  top: 0;
  display: flex;
  width: 100%;
  text-align: center;
}
.active a {
  flex: 1;
  text-decoration: none;
  padding: 20px 0;
  line-height: 20px;
  font-size: 50px;
}
.aa{
  color:red !important
}
.top {
  padding-top: 62px;
}

</style>
